class People:
    school = "不造啊"
    def __init__(self,name,age,sex):
        self.name = name
        self.age = age
        self.sex = sex
class Student(People):
    def __init__(self,name,age,sex,score=0):
        super().__init__(name,age,sex)
        self.score = score
class Teacher(People):
    def __init__(self,name,age,sex,course=[]):
        super().__init__(name,age,sex)
        self.course = course
    def tell_info(self):
        for i in self.course:
            i.tell_info() # 这个方法还没写完
class Course:
    def __init__(self,c_name,c_price):
        self.c_name = c_name
        self.c_price = c_price
    def tell_info(self):
        print("<课程名:%s，价格%s>"%(self.c_name,self.c_price))
if __name__ == '__main__':
    # ===============================
    python_ = Course("Python开发",100)
    math = Course('高等数学',30)
    English = Course("英语",4)
    music = Course("音乐",5)
    drawing = Course("绘画",60)
    # ===============================
    bai = Teacher("小白",18,'男')
    # 把课程，添加到Teacher对象里面的course列表里
    bai.course.append(python_)
    bai.course.extend([math,English,music,drawing])
    bai.tell_info()
    # =============================
    # python_.tell_info()


